package com.hyh.spring.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @BelongsPackage: com.atguigu.springcloud.common
 * @ClassName Result
 * @Author: hyhWTX
 * @CreateTime: 2023-03-27  21:31
 * @Description: 结果处理类
 * @Version: 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result<T> {
    private Integer code;
    private String  message;
    private T       data;

    public Result(Integer code, String message)
    {
        this(code,message,null);
    }
}

